﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<div id="<%= this.ID %>" class="slider">
    <div class="slider_button slider_prevpic"></div>
    <div class="slider_button slider_nextpic"></div>
<%
    int lang = (int)ViewData["Language"];
    List<VietImage.Models.Image> DailyImages = (List<VietImage.Models.Image>)ViewData["DailyImages"];
    if (DailyImages != null && DailyImages.Count > 0)
    {
        foreach (VietImage.Models.Image img in DailyImages)
        {
            String imgDetail = " imgname=\"" + img.GetDetail(lang).Name + "\" imgauthor=\"" + img.Author + "\" imgdate=\"" + img.CreatedTime.ToString("dd / MM / yyyy") + "\" imgdescription=\"" + img.GetDetail(lang).Description + "\" ";
                                
%>
    <div class="slider_image"><img <%= imgDetail %> id="Img<%= img.ID %>" src="/Image/Display/<%= img.ID %>" alt="<%=img.GetDetail(lang).Name %>" title="<%=img.GetDetail(lang).Name %>" /></div>
<%
        }
    }
    else
    {
                        
%>
    <div class="slider_image"><img id="ExImg" src="/Content/Images/Img-Slider/big_noimage.png" alt="" title="" /></div>
<%
    }
%>
<div id="dtSlideExImg" style="display:none; clear:both; position:absolute; z-index:1; width: auto; height: auto;">
    <table cellpadding="0" cellspacing="0" border="0">
        <tr style="height:15px;">
            <td class="left-top-border-panel-submenu"></td>
            <td class="top-border-panel-submenu"></td>
            <td class="right-top-border-panel-submenu"></td>
        </tr>
        <tr>
            <td class="left-border-panel-submenu"></td>
            <td class="center-panel-submenu">                                
                <div style="padding-left:10px; padding-top:10px;">
                    <span style="font-size:16px">TÊN ẢNH:</span> <span id="slider_tooltip_imgname"></span><br /><br />
                    <span style="font-style:italic;">Tên tác giả:</span> <span id="slider_tooltip_imgauthor"></span><br />
                    <span style="font-style:italic">Ngày đăng:</span> <span id="slider_tooltip_imgdate"></span><br />
                    <div style="margin-bottom:20px; width:250px;">Mô tả : <span id="slider_tooltip_imgdescription"></span>
                    </div>
                </div>
            </td>
            <td class="right-border-panel-submenu"></td>
        </tr>
        <tr style="height:15px;">
            <td class="left-bottom-border-panel-submenu"></td>
            <td class="bottom-border-panel-submenu"></td>
            <td class="right-bottom-border-panel-submenu"></td>
        </tr>
    </table>
</div>
</div>